Skip to content

FIX: Control Schemes dropdown keeps showing a deleted scheme name after the last scheme is removed [UUM-141563] - #2463

Merged
Pauliusd01 merged 2 commits into
developfrom
fix/uum-141563-control-schemes-toolbar-text
Aug 5, 2026
Merged

FIX: Control Schemes dropdown keeps showing a deleted scheme name after the last scheme is removed [UUM-141563]#2463
Pauliusd01 merged 2 commits into
developfrom
fix/uum-141563-control-schemes-toolbar-text

Conversation

@Pauliusd01

Copy link
Copy Markdown
Collaborator

Description

Note

This pull request was generated automatically. Please review carefully before merging.

InputActionsEditorView.SetUpControlSchemesMenu(ViewState viewState) assigned m_ControlSchemesToolbar.text only inside the viewState.controlSchemes.Any() branch. When the last control scheme was deleted and the collection became empty, that branch was skipped, so the Control Schemes dropdown in the Input Actions editor kept displaying the just-deleted scheme's name instead of the default until the asset was saved or the editor reopened.

This adds an else branch that resets m_ControlSchemesToolbar.text to "No Control Schemes", the value the toolbar is seeded with in InputActionsEditor.uxml, so the empty state renders correctly on the same redraw that removes the scheme.

Testing status & QA

  • No automated test added — deleting a control scheme is only reachable through the Control Schemes ToolbarMenu dropdown, which the editor tests currently cannot drive (the one sibling test exercising this toolbar is [Ignore]d for that reason).
  • QA can re-run the manual repro from UUM-141563: with a single control scheme present, delete it and confirm the dropdown immediately reads "No Control Schemes" without saving or reopening the editor.

Overall Product Risks

  • Complexity: low
  • Halo Effect: low (internal-only edit confined to a single editor view method; no public API surface touched)
  • Risk rating: 2/5 — Rating 2 because it is a single else-branch text assignment on the editor RedrawUI path whose literal matches the UXML seed, but the only nearby test is [Ignore]d, so no automated guard exists.

Comments to reviewers

N/A

Checklist

Before review:

  • Changelog entry added.
    • Explains the change in Changed, Fixed, Added sections.
    • For API change contains an example snippet and/or migration example.
    • JIRA ticket linked, example (case %%). If it is a private issue, just add the case ID without a link.
    • Jira port for the next release set as "Resolved".
  • Tests added/changed, if applicable.
    • Functional tests Area_CanDoX, Area_CanDoX_EvenIfYIsTheCase, Area_WhenIDoX_AndYHappens_ThisIsTheResult.
    • Performance tests.
    • Integration tests.
  • Docs for new/changed API's.
    • Xmldoc cross references are set correctly.
    • Added explanation how the API works.
    • Usage code examples added.
    • The manual is updated, if needed.

During merge:

  • Commit message for squash-merge is prefixed with one of the list:
    • NEW: ___.
    • FIX: ___.
    • DOCS: ___.
    • CHANGE: ___.
    • RELEASE: 1.1.0-preview.3.

@Pauliusd01 Pauliusd01 self-assigned this Aug 5, 2026
@Pauliusd01
Pauliusd01 marked this pull request as ready for review August 5, 2026 07:53
@Pauliusd01
Pauliusd01 requested a review from ritamerkl August 5, 2026 07:54

@u-pr u-pr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Harness Review

Ship it

The empty-state label is updated on the same redraw path used after deletion and matches the existing initial UI state.

Reviewed commit a2537bf

🤖 Helpful? 👍/👎

@codecov-github-com

codecov-github-com Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

@@           Coverage Diff            @@
##           develop    #2463   +/-   ##
========================================
  Coverage    78.95%   78.95%           
========================================
  Files          767      767           
  Lines       140780   140796   +16     
========================================
+ Hits        111153   111168   +15     
- Misses       29627    29628    +1     
Flag Coverage Δ
inputsystem_MacOS_6000.0 5.31% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.0_project 77.50% <100.00%> (+<0.01%) ⬆️
inputsystem_MacOS_6000.3 5.31% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.3_project 77.49% <100.00%> (+<0.01%) ⬆️
inputsystem_MacOS_6000.5 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.5_project 77.55% <100.00%> (+<0.01%) ⬆️
inputsystem_MacOS_6000.6 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.6_project 77.55% <100.00%> (+<0.01%) ⬆️
inputsystem_MacOS_6000.7 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.7_project 77.55% <100.00%> (+<0.01%) ⬆️
inputsystem_Ubuntu_6000.0 5.31% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.0_project 77.40% <100.00%> (+<0.01%) ⬆️
inputsystem_Ubuntu_6000.3 5.31% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.3_project 77.40% <100.00%> (+<0.01%) ⬆️
inputsystem_Ubuntu_6000.5 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.5_project 77.46% <100.00%> (+<0.01%) ⬆️
inputsystem_Ubuntu_6000.6 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.6_project 77.46% <100.00%> (+<0.01%) ⬆️
inputsystem_Ubuntu_6000.7 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.7_project 77.46% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...or/UITKAssetEditor/Views/InputActionsEditorView.cs 54.06% <100.00%> (+0.81%) ⬆️

ℹ️ Need help interpreting these results?


### Fixed

- Fixed the Control Schemes dropdown in the Input Actions editor continuing to display a deleted scheme's name after the last control scheme was removed, instead of resetting to "No Control Schemes" until the asset was saved or the editor reopened [UUM-141563](https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-141563)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full stop missing, otherwise looks good.

…er the last scheme is removed [UUM-141563]

After deleting the only control scheme in the Input Actions editor, the Control Schemes toolbar dropdown kept displaying the just-deleted scheme's name until the asset was saved or the editor reopened.

InputActionsEditorView.SetUpControlSchemesMenu(ViewState) only assigned m_ControlSchemesToolbar.text inside the `viewState.controlSchemes.Any()` branch, so when the collection became empty the toolbar retained its stale text. Add an else branch that resets the text to the "No Control Schemes" default seeded by InputActionsEditor.uxml.

Jira: https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-141563
@Pauliusd01
Pauliusd01 force-pushed the fix/uum-141563-control-schemes-toolbar-text branch from a2537bf to 7dce902 Compare August 5, 2026 09:08
@Pauliusd01
Pauliusd01 merged commit 8774226 into develop Aug 5, 2026
5 of 59 checks passed
@Pauliusd01
Pauliusd01 deleted the fix/uum-141563-control-schemes-toolbar-text branch August 5, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants